﻿<ResourceDictionary 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     
    >

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Brushes/Brushes.xaml"/>
    </ResourceDictionary.MergedDictionaries>


    <Style x:Key="P2MainMenuHeaderStackPanelStyle" TargetType="StackPanel">
        <Setter Property="Background" Value="{DynamicResource MyBlueBackgroundGradientBrush}"/>
        <Setter Property="MinHeight" Value="28"/>        
    </Style>

    <Style x:Key="P2MainMenuHeaderStyle" TargetType="TextBlock">        
        <Setter Property="FontFamily" Value="Tahoma"/>        
        <Setter Property="FontSize" Value="18"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="TextDecorations" Value="None"/>        
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Foreground" Value="White"/>                
    </Style>

    <Style TargetType="ListViewItem">
        <Style.Resources>
            <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Green"/>
            <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="LightBlue"/>
        </Style.Resources>
    </Style>


    
    
    <!-- Here come the Sub Menu Items -->
    <Style x:Key="P2MainMenuItemenuStyle" TargetType="{x:Type ListViewItem}">
        <Style.Resources>
            <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#15428B" />
            <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#15428B"/>
        </Style.Resources>

        <Setter Property="FontSize" Value="12"/>
        <Setter Property="Width" Value="Auto"/>
        <Setter Property="MinWidth" Value="220"/>
        <Setter Property="Margin" Value="0,1,0,0" />

        <Style.Triggers>
            <Trigger Property="IsSelected" Value="True">
                <Setter Property="Foreground" Value="White"/>
            </Trigger>

            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Background" Value="#FFAC42"/>
            </Trigger>
        </Style.Triggers>

    </Style>
    <!-- Sub Menu Items END-->



    <LinearGradientBrush x:Key="LabelBrush" StartPoint="0, 0" EndPoint="0,1">
        <GradientStop Color="#E3EFFF" Offset="0" />
        <GradientStop Color="#AFD2FF" Offset="1" />
    </LinearGradientBrush>
<!-- This is black-->
    <LinearGradientBrush x:Key="ButtonNormalBrush" StartPoint="0, 0" EndPoint="0,1">
        <GradientStop Color="#FF404040" Offset="0"/>
        <GradientStop Color="#FF000000" Offset="0.992"/>
        <GradientStop Color="#FF808080" Offset="0.085"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="ButtonSelectedBrush" StartPoint="0, 0" EndPoint="0,1">
        <GradientStop Color="#FFD9AA" Offset="0" />
        <GradientStop Color="#FFBB6E" Offset="0.40625" />
        <GradientStop Color="#FFAB3F" Offset="0.40625" />
        <GradientStop Color="#FEE17A" Offset="1" />
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="ButtonPressedBrush" StartPoint="0, 0" EndPoint="0,1">
        <GradientStop Color="#FFBD69" Offset="0" />
        <GradientStop Color="#FFAC42" Offset="0.40625" />
        <GradientStop Color="#FB8C3C" Offset="0.40625" />
        <GradientStop Color="#FED364" Offset="1" />
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="ButtonHoverBrush" StartPoint="0, 0" EndPoint="0,1">
        <GradientStop Color="#FFFEE4" Offset="0" />
        <GradientStop Color="#FFE8A7" Offset="0.40625" />
        <GradientStop Color="#FFD767" Offset="0.40625" />
        <GradientStop Color="#FFE69E" Offset="1" />
    </LinearGradientBrush>

    <ControlTemplate x:Key="MainMenuButtonTemplate" TargetType="{x:Type Button}">
        <!-- These triggers control the background and text colour of the Outlook bar buttons when the are selected and/or hovered over -->
        <ControlTemplate.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="False" />
                </MultiTrigger.Conditions>
                <MultiTrigger.Setters>
                    <Setter Property="Background" Value="{StaticResource ButtonNormalBrush}" />
                </MultiTrigger.Setters>
            </MultiTrigger>

            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True" />
                </MultiTrigger.Conditions>
                <MultiTrigger.Setters>
                    <Setter Property="Background" Value="{StaticResource ButtonHoverBrush}" />
                </MultiTrigger.Setters>
            </MultiTrigger>

            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True" />
                </MultiTrigger.Conditions>
                <MultiTrigger.Setters>
                    <Setter Property="Background" Value="{StaticResource ButtonPressedBrush}" />
                </MultiTrigger.Setters>
            </MultiTrigger>
        </ControlTemplate.Triggers>

        <!-- This defines the look of the individual TabItems -->
        <Grid Background="{TemplateBinding Background}" MinHeight="32" SnapsToDevicePixels="True">
            <Line Stroke="{StaticResource BorderBrush}" VerticalAlignment="Top" Stretch="Fill" X2="1" SnapsToDevicePixels="True" />
            <ContentPresenter Margin="5,0,5,0" TextBlock.FontFamily="Tahoma" TextBlock.FontSize="10pt" TextBlock.FontWeight="Normal" 
                              TextBlock.Foreground="White" Content="{TemplateBinding Content}" VerticalAlignment="Center"/>
        </Grid>
    </ControlTemplate>



</ResourceDictionary>

